package arina.university.view;

import arina.university.model.Group;


import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 01.12.13
 * Time: 21:36
 * To change this template use File | Settings | File Templates.
 */
public class GroupView {
    public void getGroupInfo(Group group) {
        System.out.print("Group:");
        System.out.println(group.getNumber() + " Students quantity:  " + group.getQuantity() + " Speciality: " + group.getSpeciality());
        System.out.println("List of students:");
        new StudentView().getStudentsInfo(group.getStudents());


    }

    public void getGroupsInfo(Collection<Group> groups){
        for(Group group:groups){
            getGroupInfo(group);
        }

    }
}
